<?php
$id=$_GET['id'];
include 'conectarse.php';
$result=mysql_query("select NOT_IMAGEN,NOT_IMAGEN_TIPO from NOTICIA where NOT_ID=".$id."");	
while ($registro = mysql_fetch_array($result)){
	$imagen=$registro['NOT_IMAGEN'];
	$tipo=$registro['NOT_IMAGEN_TIPO'];
}
header("Content-Type: ".$tipo."");
echo $imagen;
?>